package com.yueqian.bookshop.bean;

/**
 * Book实体类，需要跟book表映射
 */
public class Book {
    private Integer bookId;// 图书编号
    private String bookName;// 图书名称
    private BookType bookType;// 图书类别，存在一个关联关系
    private String bookPic;// 图书封面
    private String author;// 图书作者
    private String publishingHouse;// 出版社
    private String publishingDate;// 出版日期
    private String depict;// 图书描述
    private double price;// 图书价格
    private Integer status;// 状态，0-默认，1-上架，2-下架

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public BookType getBookType() {
        return bookType;
    }

    public void setBookType(BookType bookType) {
        this.bookType = bookType;
    }

    public String getBookPic() {
        return bookPic;
    }

    public void setBookPic(String bookPic) {
        this.bookPic = bookPic;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublishingHouse() {
        return publishingHouse;
    }

    public void setPublishingHouse(String publishingHouse) {
        this.publishingHouse = publishingHouse;
    }

    public String getPublishingDate() {
        return publishingDate;
    }

    public void setPublishingDate(String publishingDate) {
        this.publishingDate = publishingDate;
    }

    public String getDepict() {
        return depict;
    }

    public void setDepict(String depict) {
        this.depict = depict;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", bookType=" + bookType +
                ", bookPic='" + bookPic + '\'' +
                ", author='" + author + '\'' +
                ", publishingHouse='" + publishingHouse + '\'' +
                ", publishingDate='" + publishingDate + '\'' +
                ", depict='" + depict + '\'' +
                ", price=" + price +
                ", status=" + status +
                '}';
    }
}
